class Person:
    country = 'china'

    def __init__(self,name,age):
        self.name = name
        self.age = age

person = Person('张三',18)

print(Person.country)

# 类属性新增
Person.country_cn = 'China'
print(Person.country_cn)

# 对象访问类属性
print(person.country)

#对象能否修改类属性
person.country='cn'
print(dir(Person))
print(dir(person))
# 类属性删除
# del Person.country
# print(Person.country)

